

window.local = {
    // set
    set:function(key,value){
        localStorage.setItem(key,JSON.stringify(value))
    },
    
    // get
    get:function(key){
        return localStorage.getItem(key);
    },

    // remove
    remove:function(key){
        localStorage.removeItem(key);
    },

    // clear
    clear:function(){
        localStorage.clear();
    }
}